﻿<%@ Page Language="C#" MasterPageFile="~/Globals/GenericMasterPage.master" AutoEventWireup="true"
    CodeFile="ABMEnfermedades.aspx.cs" Inherits="Modules_EnfermedadesControlEstanque_ABMEnfermedades"
    Title="Untitled Page" %>

<%@ Register Assembly="WebUtils" Namespace="WebUtils.Controls" TagPrefix="cc3" %>

<%@ Register Src="../../Controls/TecnopezDataGRIDABMView.ascx" TagName="TecnopezDataGRIDABMView"
    TagPrefix="uc2" %>

<%@ Register Src="../../Controls/TecnoPezUpdateProgress.ascx" TagName="TecnoPezUpdateProgress"
    TagPrefix="uc1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register Assembly="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    Namespace="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    TagPrefix="cc2" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="CPHPrincipal" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
<asp:Wizard id="wzrABM" runat="server" DisplaySideBar="False" Font-Size="0.8em" Font-Names="Verdana" BorderWidth="0px" BorderColor="#B5C7DE" ActiveStepIndex="1">
<StepStyle ForeColor="#333333" Font-Size="0.8em" VerticalAlign="Top"></StepStyle>

<SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top"></SideBarStyle>

<NavigationButtonStyle BackColor="White" BorderStyle="Solid" ForeColor="#284E98" BorderWidth="1px" BorderColor="#507CD1" Font-Size="0.8em" Font-Names="Verdana"></NavigationButtonStyle>
<WizardSteps>
<asp:WizardStep runat="server" ID="wzrBusqueda" Title="Busqueda" StepType="Complete"><TABLE style="WIDTH: 100%" id="TableData" cellSpacing=0><TBODY><TR><TD class="cabeceraTabla" colSpan=3>Buscar enfermedades</TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Nombre" Width="200px" ID="lblBuscarNombre"></asp:Label>
 </TD><TD style="WIDTH: 210px" class="columnaData"><asp:TextBox runat="server" Width="200px" ID="txtBuscarNombre"></asp:TextBox>
 </TD><TD vAlign=top rowSpan=2><asp:Button runat="server" ID="cmdBuscar" Width="102px" CssClass="Boton" Text="Buscar" Height="23px" BorderStyle="None" OnClick="cmdBuscar_Click"></asp:Button>
 <asp:Button runat="server" ID="cmdNuevo" Width="102px" CssClass="Boton" Text="Nueva" Height="23px" OnClick="cmdNuevo_Click"></asp:Button>
 </TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Nombre cientifico" Width="200px" ID="lblBuscarNombreCientifico"></asp:Label>
 </TD><TD style="WIDTH: 210px" class="columnaData"><asp:TextBox runat="server" Width="200px" ID="txtBuscarNombreCientifico"></asp:TextBox>
 </TD></TR><TR><TD style="HEIGHT: 170px" colSpan=3><uc2:TecnopezDataGRIDABMView runat="server" ID="TecnopezDataGRIDABMView1"></uc2:TecnopezDataGRIDABMView>
 </TD></TR></TBODY></TABLE></asp:WizardStep>
<asp:WizardStep runat="server" ID="wzrEdicion" Title="Edicion" StepType="Complete"><TABLE cellSpacing=0 width="100%"><TBODY><TR><TD style="HEIGHT: 20px" class="cabeceraTabla" colSpan=4>Datos de la enfermedad</TD></TR><TR><TD style="WIDTH: 200px; HEIGHT: 26px" class="columnaLabels"><asp:Label runat="server" Text="C&#243;digo" Width="200px" ID="Label1"></asp:Label>
 </TD><TD style="WIDTH: 205px; HEIGHT: 26px" class="columnaData"><asp:TextBox runat="server" Width="200px" ID="txtID"></asp:TextBox>
 </TD><TD style="WIDTH: 1px; HEIGHT: 26px" class="columnaData">&nbsp;</TD><TD style="WIDTH: 7px" vAlign=top rowSpan=2><asp:Button runat="server" ID="cmdEditar" Width="102px" CssClass="Boton" Text="Editar" Height="23px" CausesValidation="False" OnClick="cmdEditar_Click"></asp:Button>
 <asp:Button runat="server" ID="cmdEliminar" Width="102px" CssClass="Boton" Text="Eliminar" Height="23px" CausesValidation="False" OnClick="cmdEliminar_Click"></asp:Button>
 </TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Nombre" Width="200px" ID="Label2"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData"><asp:TextBox runat="server" Width="200px" MaxLength="30" ID="txtNombre"></asp:TextBox>
 </TD><TD style="WIDTH: 1px" class="columnaData"><asp:RequiredFieldValidator runat="server" ErrorMessage="Ingrese un nombre" ControlToValidate="txtNombre" ID="RFVNombre">*</asp:RequiredFieldValidator>
 &nbsp;</TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Nombre cient&#237;fico" Width="200px" ID="Label3"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData"><asp:TextBox runat="server" Width="200px" ID="txtNombreCientifico"></asp:TextBox>
 </TD><TD style="WIDTH: 1px" class="columnaData"><asp:RequiredFieldValidator runat="server" ErrorMessage="Ingrese nombre cient&#237;fico" ControlToValidate="txtNombreCientifico" ID="RFVNombreCientifico">*</asp:RequiredFieldValidator>
 &nbsp;&nbsp;</TD><TD style="WIDTH: 7px"></TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels" vAlign=top><asp:Label runat="server" Text="Descripci&#243;n" Width="200px" ID="Label4"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData" vAlign=top><asp:TextBox runat="server" Rows="10" Width="200px" ID="txtDescripcion" TextMode="MultiLine"></asp:TextBox>
 </TD><TD style="WIDTH: 1px" class="columnaData" vAlign=top><asp:RequiredFieldValidator runat="server" ErrorMessage="Ingrese descripci&#243;n" ControlToValidate="txtDescripcion" ID="RFVDescripcion">*</asp:RequiredFieldValidator>
 &nbsp; </TD><TD style="WIDTH: 7px" vAlign=bottom><asp:Button runat="server" ID="cmdAceptar" Width="102px" CssClass="Boton" Text="Aceptar" Height="23px" OnClick="cmdAceptar_Click"></asp:Button>
 <asp:Button runat="server" ID="cmdCancelar" Width="102px" CssClass="Boton" Text="Cancelar" Height="23px" CausesValidation="False" OnClick="cmdCancelar_Click"></asp:Button>
 </TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels" vAlign=top><asp:Label runat="server" Text="Causas" Width="200px" ID="Label5"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData" vAlign=top><asp:TextBox runat="server" Width="166px" ID="txtCausa"></asp:TextBox>
 <asp:ImageButton runat="server" ID="btnAgregarCausa" ValidationGroup="causa" ImageUrl="~/Styles/Icons/add.png" OnClick="btnAgregarCausa_Click"></asp:ImageButton>
 <BR /><asp:RequiredFieldValidator runat="server" ErrorMessage="Ingrese causa" ControlToValidate="txtCausa" ValidationGroup="causa" ID="rfvCausa"></asp:RequiredFieldValidator>
 <BR /><asp:Label runat="server" Font-Size="7pt" ForeColor="Red" ID="lblMessageCausa"></asp:Label>
 <BR /><BR /><cc3:TecnoPezDataGrid runat="server" ID="tdgCausas" ShowHeader="False" Width="200px" EmptyDataText="No hay resultados." CssClass="Grilla" OnRowDataBound="tdgCausas_RowDataBound" OnRowCommand="tdgCausas_RowCommand">
<HeaderStyle ForeColor="White" CssClass="GrdHeader"></HeaderStyle>

<AlternatingRowStyle CssClass="GrdAlternatingRow"></AlternatingRowStyle>

<RowStyle CssClass="GrdRow"></RowStyle>

<PagerStyle ForeColor="White" CssClass="GrdPager"></PagerStyle>
</cc3:TecnoPezDataGrid>
 </TD><TD style="WIDTH: 1px" class="columnaData" vAlign=top></TD><TD style="WIDTH: 7px" vAlign=bottom></TD></TR>
    <tr>
        <td class="columnaLabels" style="width: 200px" valign="top">
            <asp:Label ID="Label6" runat="server" Text="Sintomas" Width="200px"></asp:Label>
        </td>
        <td class="columnaData" style="width: 205px" valign="top">
            <asp:TextBox ID="txtSintoma" runat="server" Width="166px"></asp:TextBox>
            <asp:ImageButton ID="btnAgregarSintoma" runat="server" ImageUrl="~/Styles/Icons/add.png"
                OnClick="btnAgregarSintoma_Click" ValidationGroup="sintoma" />
            <asp:RequiredFieldValidator ID="rfvSintoma" runat="server" ControlToValidate="txtSintoma"
                ErrorMessage="Ingrese sintoma" ValidationGroup="sintoma"></asp:RequiredFieldValidator>
            <br />
            <asp:Label ID="lblMessageSintoma" runat="server" Font-Size="7pt" ForeColor="Red"></asp:Label>
            <br />
            <br />
            <cc3:TecnoPezDataGrid runat="server" ID="tdgSintomas" ShowHeader="False" Width="200px" EmptyDataText="No hay resultados." CssClass="Grilla" OnRowCommand="tdgSintomas_RowCommand">
                <HeaderStyle CssClass="GrdHeader" ForeColor="White" />
                <AlternatingRowStyle CssClass="GrdAlternatingRow" />
                <RowStyle CssClass="GrdRow" />
                <PagerStyle CssClass="GrdPager" ForeColor="White" />
            </cc3:TecnoPezDataGrid>
        </td>
        <td class="columnaData" style="width: 1px" valign="top">
        </td>
        <td style="width: 7px" valign="bottom">
        </td>
    </tr>
    <TR><TD style="HEIGHT: 25px" vAlign=top colSpan=2><asp:Label runat="server" CssClass="errorLabel" ID="_lblError"></asp:Label>
 <BR /><cc2:PropertyProxyValidator runat="server" ID="PPVNombre" DisplayMode="List" SetFocusOnError="True" Display="Dynamic" RulesetName=""></cc2:PropertyProxyValidator>
 <BR /><cc2:PropertyProxyValidator runat="server" ID="PPVNombreCientifico" DisplayMode="List" SetFocusOnError="True" Display="Dynamic" RulesetName=""></cc2:PropertyProxyValidator>
 <BR /><cc2:PropertyProxyValidator runat="server" ID="PPVDescripcion" DisplayMode="List" SetFocusOnError="True" Display="Dynamic" RulesetName=""></cc2:PropertyProxyValidator>
 &nbsp; <BR /></TD><TD style="WIDTH: 1px; HEIGHT: 25px" vAlign=top colSpan=1></TD><TD style="WIDTH: 7px; HEIGHT: 25px" vAlign=top></TD></TR><TR><TD style="HEIGHT: 25px" vAlign=top colSpan=2>&nbsp; </TD><TD style="WIDTH: 1px; HEIGHT: 25px" vAlign=top colSpan=1></TD><TD style="WIDTH: 7px; HEIGHT: 25px" vAlign=top></TD></TR></TBODY></TABLE></asp:WizardStep>
</WizardSteps>

<SideBarButtonStyle BackColor="#507CD1" ForeColor="White" Font-Names="Verdana"></SideBarButtonStyle>

<HeaderStyle BackColor="#284E98" BorderStyle="Solid" ForeColor="White" BorderWidth="2px" BorderColor="#EFF3FB" HorizontalAlign="Center" Font-Size="0.9em" Font-Bold="True"></HeaderStyle>
</asp:Wizard> 
</ContentTemplate>
    </asp:UpdatePanel>
    <uc1:TecnoPezUpdateProgress ID="TecnoPezUpdateProgress1" runat="server" />
    
</asp:Content>
